home *** CD-ROM | disk | FTP | other *** search
- HOW TO SET THE BORDER COLOR ON A COLOR MONITOR
- USING ASSEMBLY LANGUAGE OR TURBO PASCAL
-
-
-
- I have heard it said before that you must program in BASIC
- to set the border color on a color monitor. I have always thought
- that this was wrong, but could not prove it until now. In assembly
- language the code is as follows:
-
- MOV AL,XX ;in place of XX substitute the number for the
- ;color of the border (ie. 0=black, 1=blue ...)
- MOV DX,03D9
- OUT DX,AL
-
- In Turbo Pascal, this can be done in one statement as follows:
-
- Port[03D9] := XX; {in place of XX substitute the color number
- as mentioned above}
-
-
- Bill Davis
- Fredericksburg, VA